package com.azt.api.dto;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.jeecgframework.poi.excel.annotation.ExcelIgnore;

import java.util.List;

/**
 * 集采供应商报告
 * Created by timzou on 2017/10/17.
 */
public class CentralizeProviderReportDto {


    /**
     * 公司id
     */
    @ExcelIgnore
    private Integer companyId;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称" , width = 40)
    private String companyName;

    /**
     * 接收的询价数量
     */
    @Excel(name = "接收的询价数量" , width = 13)
    private Integer enqNum;

    /**
     * 参与报价数量
     */
    @Excel(name = "参与报价数量" , width = 12)
    private Integer quoteNum;

    /**
     * 已下单数量
     */
    @Excel(name = "已下单数量")
    private Integer orderNum;


    /**
     * 已下单金额
     */
    @Excel(name = "已下单金额")
    private String orderPrice;

    /**
     * 下单比例
     */
    @ExcelIgnore
    private Double quoteOrderPer;

    @Excel(name = "下单比例")
    private String quoteOrderPreStr;


    /**
     * 已完成订单数量
     */
    @Excel(name ="已成交订单数量" , width = 13)
    private Integer orderCompNum;


    /**
     * 报价成交金额
     */
    @Excel(name = "已成交金额")
    private String orderCompPrice;

    /**
     * 报价成交比例
     */
    @ExcelIgnore
    private Double quoteSuccPer;

    @Excel(name = "已成交比例")
    private String quoteSuccPerStr;





    /**
     * 报价明细
     */
    @ExcelCollection(name = "报价明细")
    private List<CentralizeProviderDetailDto> quoteDetail;


    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getEnqNum() {
        return enqNum;
    }

    public void setEnqNum(Integer enqNum) {
        this.enqNum = enqNum;
    }

    public Integer getQuoteNum() {
        return quoteNum;
    }

    public void setQuoteNum(Integer quoteNum) {
        this.quoteNum = quoteNum;
    }

    public Double getQuoteSuccPer() {
        return quoteSuccPer;
    }

    public void setQuoteSuccPer(Double quoteSuccPer) {
        this.quoteSuccPer = quoteSuccPer;
    }


    public List<CentralizeProviderDetailDto> getQuoteDetail() {
        return quoteDetail;
    }

    public void setQuoteDetail(List<CentralizeProviderDetailDto> quoteDetail) {
        this.quoteDetail = quoteDetail;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getQuoteOrderPer() {
        return quoteOrderPer;
    }

    public void setQuoteOrderPer(Double quoteOrderPer) {
        this.quoteOrderPer = quoteOrderPer;
    }


    public Integer getOrderCompNum() {
        return orderCompNum;
    }

    public void setOrderCompNum(Integer orderCompNum) {
        this.orderCompNum = orderCompNum;
    }

    public String getQuoteOrderPreStr() {
        return quoteOrderPer/100 + "%";
    }

    public String getQuoteSuccPerStr() {
        return quoteSuccPer/100 + "%";
    }

    public String getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(String orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderCompPrice() {
        return orderCompPrice;
    }

    public void setOrderCompPrice(String orderCompPrice) {
        this.orderCompPrice = orderCompPrice;
    }
}

